﻿using Furion.DatabaseAccessor;
using Microsoft.EntityFrameworkCore;
using MyProject.Entity;
using System;

namespace MyProject.EntityListener.SystemManage
{
    public class CodeTempletListener : IEntityChangedListener<CodeTempletEntity>
    {
        public void OnChanged(CodeTempletEntity entity, DbContext dbContext, Type dbContextLocator, EntityState state)
        {
#if Relese
            throw new Exception("运行环境不允许操作！");
#endif
        }

    }
}